<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * FormativeLab
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		FormativeLab
 * @author		FormativeLab Dev Team
 * @copyright	Copyright (c) 2011 - 2013, FormativeLab, Inc.
 * @license		http://www.formativesoft.com/license/
 * @link		http://www.formativesoft.com/
 * @since		Version 2.0
 * @filesource ./application/controllers/Unit.php
 */

// ------------------------------------------------------------------------

/**
 * FormativeLab Unit Controller
 *
 * @package		FormativeLab
 * @subpackage	controllers
 * @category	controllers
 * @author		Formative Soft Ltd
 * @link		http://www.formativesoft.com/
 */

// ------------------------------------------------------------------------

class Unit extends FSL_Controller {

	static $helpesr	= array();
	static $models	= array('M00I001');

	public function __construct(){
        parent::__construct('defaults');
		$this->load->helper(self::$helpers);
		$this->load->model(self::$models);
    }
	
	public function index(){
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
	public function save(){
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
	public function update(){		
		$data = array(
			'clazz'		=> $this->router->fetch_class(),
			'action' 	=> $this->router->fetch_method()
		);
		$this->render->response($data);
	}
	
}

/* End of file Unit.php */
/* Location: ./application/controllers/Unit.php */